<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>场次信息</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
          integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css"
          integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
            integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
</head>
<body>
<?php
include_once("../query_mysql.php");
session_start();
$_SESSION['cinema_name']=$_REQUEST['电影院'];
$film_id=$_SESSION['film_id'];
echo "电影院：".$_SESSION['cinema_name'];
echo "<br>位置：";
$cinema_name=$_SESSION['cinema_name'];
$qm = new query_mysql() ;
@$qm->query_sql("select cinema_address from cinema_info where cinema_name='$cinema_name'",cinema_address);

//@query_sql("select cinema_address from cinema_info where cinema_name='$cinema_name'",cinema_address);
//$is_logged=$_REQUEST['is_logged'];
echo "<br>登录状态：";
if ($_SESSION['is_logged']==0)
    echo "未登录<br>";
else
    echo "已登录<br>";
echo "电影：";
@$qm->query_sql("select film_name from film_info where film_id='$film_id'",film_name);
echo "<hr><br>选择放映厅：";
?>
<form action="select_date.php" method="get">
    <select name="放映厅" id="hall">
        <?php
//        这里必须这么用
        $conn=mysqli_connect('127.0.0.1','root','123456','tpp');
        $sql_txt2="select * from hall_info where cinema_id=(select cinema_id from cinema_info where cinema_name='$cinema_name')";
        $result2=mysqli_query($conn,$sql_txt2);
        while($info2=mysqli_fetch_array($result2)){
            $hall_name=$info2['hall_name'];
            echo "<option value='$hall_name'>$hall_name</option>";
        }
        ?>
    </select>
    <input type="submit" value="进入选择日期页面">
</form>
</body>
</html>

